package com.authManager.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
//@EnableEurekaClient
@RestController
@ComponentScan(basePackages={"com.authManager.server"})
@EnableAspectJAutoProxy(exposeProxy=true)
@EnableDiscoveryClient
public class AuthManagerServerApplication {

	public static void main(String[] args) {
		SpringApplication.run(AuthManagerServerApplication.class, args);
	}


	@RequestMapping("/hi")
    public String home(@RequestParam(value = "name", defaultValue = "forezp") String name) {
        return "hi " + name + " ,i am from port:";
    }
}
 